package day5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Check2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("令狐冲上午学习理论，下午上机");
        System.out.print("请岳不群检查，合格了？");
        String answer=in.next();//y合格了
        while (!answer.equals("y")){
            System.out.println("令狐冲上午学习理论，下午上机");
            System.out.print("请岳不群检查，合格了？");
            answer=in.next();
        }
        System.out.println("终于合格了！！！！");
    }
}
